package tpInterface;

import java.util.List;
import object.Category;
import object.ReturnBool;

/**
 *
 * @author SonTT
 */
public interface ICategory {

    // Get categories:
    List<Category> getCategoies();

    // Add new category:
    ReturnBool addCategory(Category category);

    // Edit category:
    ReturnBool editCategory(Category category);

    // Delete category:
    ReturnBool deleteCategory(String categoryID);

    // Delete categories:
    ReturnBool deleteCategories(String[] categoryIDs);

    // Search category:
    List<Category> searchCategory(String keyword);
}
